package com.blog.entity;

import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableField;
import java.io.Serializable;

import com.blog.utils.BaseTreeNode;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 *
 * </p>
 *
 * @author huangzp
 * @since 2021-12-13
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
public class BlogComment extends BaseTreeNode implements Serializable {

    private static final long serialVersionUID=1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    /**
     * 文章id
     */
    @TableField("articleId")
    private Integer articleId;

    /**
     * 评论内容
     */
    private String content;
    @TableField("articleName")
    private String articleName;

    /**
     * 评论时间
     */
    @TableField(value = "createTime",fill = FieldFill.INSERT)
    private String createTime;

    /**
     * 评论人
     */
    @TableField("byManagerId")
    private Integer byManagerId;

    /**
     * 被评论人
     */
    private Integer pid;

    /**
     * 昵称
     */
    private String nickname;


}
